import {
    Column,
    CreateDateColumn,
    Entity,
    PrimaryGeneratedColumn,
    UpdateDateColumn,
} from 'typeorm';

@Entity({ name: 'permissions' })
export class PermissionEntity {
    @PrimaryGeneratedColumn()
    id: string;

    @Column({ length: 20, comment: '权限代码' })
    code: string;

    @Column({ length: 100, comment: '权限描述' })
    description: string;

    @CreateDateColumn({ comment: '创建时间' })
    createTime: Date;

    @UpdateDateColumn({ comment: '更新时间' })
    updateTime: Date;
}
